import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class TEST {
    public static void main(String[] args) throws IOException {
        //加载驱动
        //获得连接
        //建立语句
        //执行语句
        //处理结果
        //释放资源

        Student stu = new Student(55,"daw","wda");

        //读配置文件
        Properties properties = new Properties();
        InputStream stream = Demo.class.getResourceAsStream("/com/company/orm/mybatis.properties");
        properties.load(stream);

        String sql=properties.getProperty("emp.select");
        System.out.println(sql);

    }
}